<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>贵阳经济技术开发区 企业服务平台</title>
<body>
<div align="right" ><a href="${contextPath}initList.html?type=map" style="text-decoration: none;"><h4>退出全屏</h4></a></div>
<div id="mapDiv" style="width:100%;height:97%;display: block;">没有地图</div>
</body>
</html>

<script type="text/javascript" src="${contextPath}js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="${contextPath}js/aMap/amapUtil.js"></script>
<script>
$(function () {
	loadScript();
});
function init() {
	var d = new Date();
	var position = new AMap.LngLat(106.710237, 26.533338);//创建中心点坐标, 贵阳小城故事为中心
	var map = new AMap.Map("mapDiv", {
		center : position,
		level : 13  //地图显示的缩放级别
	});
	
	//加载工具条
	map.plugin([ "AMap.ToolBar", "AMap.OverView", "AMap.Autocomplete", "AMap.CitySearch", "AMap.DragRoute", "AMap.Hotspot","AMap.MapType"],
			function() {
				var tool = new AMap.ToolBar();
				var view = new AMap.OverView();
				type= new AMap.MapType({defaultType:0});//初始状态使用2D地图  
      		    map.addControl(type);  
				map.addControl(tool);
				map.addControl(view); // 鹰眼
			});
	
	
	
	//var datajson = ;
	createMarkers(${(organ)!"[]"}, map);
}

//异步加载
function loadScript() {
	var script = document.createElement("script");
	script.type = "text/javascript";
	script.src = "http://webapi.amap.com/maps?v=1.2&key=yourkey&callback=init";
	document.body.appendChild(script);
}
</script>